import { translateTitle } from '@/utils/i18n'
const LanguageManagement = {
  LanguageManagement: {
    search: {
      form: {
        method: 'dams.languagepack.query',
        name: 'search',
        field: [
          {
            type: 'input',
            name: 'name',
            label: translateTitle('Dams.DamsSystemManagement.中文简体描述'),
            labelHidden: false,
          },
          {
            type: 'button',
            label: translateTitle('Dams.DamsSystemManagement.查询'),
            labelHidden: true,
          },
        ],
      },
    },
    dialog: {
      form: {
        method: '',
        name: 'dialog',
        field: [
          {
            type: 'checkbox',
            name: 'ID',
            label: '',
            hidden: true,
          },
          {
            type: 'input',
            name: 'CODE_ID',
            label: translateTitle('Dams.DamsSystemManagement.自定义CODE'),
            labelHidden: false,
            isRules: true,
          },
          {
            type: 'select',
            name: 'SUB_SYSTEM',
            label: translateTitle('Dams.DamsSystemManagement.所属子系统'),
            options: [],
            isRules: true,
          },
          {
            type: 'input',
            name: 'ZH_CN',
            label: translateTitle('Dams.DamsSystemManagement.中文简体'),
            labelHidden: false,
            isRules: true,
          },
          {
            type: 'input',
            name: 'EN',
            label: translateTitle('Dams.DamsSystemManagement.英文'),
            labelHidden: false,
          },
          {
            type: 'input',
            name: 'ZH_TC',
            label: translateTitle('Dams.DamsSystemManagement.中文繁体'),
            labelHidden: false,
          },
          {
            type: 'button',
            label: translateTitle('Dams.DamsSystemManagement.提交'),
            labelHidden: true,
          },
        ],
      },
    },
    deleteMethod: 'dams.languagepack.del',
    updateMethod: 'dams.languagepack.update',
    addMethod: 'dams.languagepack.add',
    downloadMethod: 'dams.language.pack.export',
  },
}
export default LanguageManagement
